var dbserver = require("../server/dbserver")
var myemail = require("../server/emailserver")
exports.userAsign = (req,res)=>{
    let name = req.body.name;
    let email = req.body.email;
    let psw = req.body.psw
    dbserver.userAsign(name,psw,email,res);
    myemail.emailSignUp(email,res);//发送邮件
}

exports.judgeValue = (req,res)=>{
    let data = req.body.data;
    let type = req.body.type;
    dbserver.countUserValue(data,type,res);
}